package be.gnx.logging4eclipse.perspective.view;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

import be.gnx.logging4eclipse.perspective.model.logging.Event;
import be.gnx.logging4eclipse.perspective.widget.LoggingEntryWidget;

public class LoggingEntryView extends ViewPart implements LoggingEntriesEvents {

  private LoggingEntryWidget loggingEntryWidget;

  public void selectedLoggingEvent(Event loggingEvent) {
    loggingEntryWidget.setLoggingEvent(loggingEvent);
  }

  @Override
  public void createPartControl(Composite parent) {
    LoggingEntriesView.addLoggingEntriesEvents(this);
    loggingEntryWidget = new LoggingEntryWidget(parent, SWT.NONE);
  }

  @Override
  public void setFocus() {
  }

}
